import request from '@/utils/request'

// 查询responseMsg列表
export function listMsg(query) {
  return request({
    url: '/response/msg/list',
    method: 'get',
    params: query
  })
}

// 查询responseMsg列表
export function queryListMsg(query) {
  return request({
    url: '/response/msg/queryList',
    method: 'get',
    params: query
  })
}

// 查询responseMsg详细
export function getMsg(id) {
  return request({
    url: '/response/msg/getInfo/' + id,
    method: 'get'
  })
}

// 查询responseMsg详细通过预录入编号
export function getMsgBySeqNo(seqNo) {
  return request({
    url: '/response/msg/getSeqNo/' + seqNo,
    method: 'get'
  })
}

// 新增responseMsg
export function addMsg(data) {
  return request({
    url: '/response/msg/add',
    method: 'post',
    data: data
  })
}

// 修改responseMsg
export function updateMsg(data) {
  return request({
    url: '/response/msg/edit',
    method: 'post',
    data: data
  })
}

// 删除responseMsg
export function delMsg(id) {
  return request({
    url: '/response/msg/remove/' + id,
    method: 'get'
  })
}

// 导出responseMsg
export function exportMsg(query) {
  return request({
    url: '/response/msg/export',
    method: 'get',
    params: query
  })
}
